package com.ruoyi.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.CourseOrders;

import java.util.List;

public interface ICourseOrdersService extends IService<CourseOrders> {
    /**
     * 查询课程预约订单列表
     *
     * @param courseOrders 课程预约单
     * @return 课程预约单集合
     */
    public List<CourseOrders> getCourseOrdersList(CourseOrders courseOrders);

    public List<CourseOrders> getCourseOrdersListByType(CourseOrders courseOrders);

    public List<CourseOrders> getCourseOrdersListByStatus(CourseOrders courseOrders);

    public List<CourseOrders> getCourseOrdersByUser(CourseOrders courseOrders);

    public List<CourseOrders> getCourseOrdersByCourse(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrderByTime(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByUserId(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByUserIdAndCourseId(Long courseId, Long[] userIds);

    public void deleteBatchByCourseIds(Long[] courseIds);

    public void deleteBatchByUserIds(List<Long> userIds);

    public CourseOrders getCourseOrdersById(Long id);

    public int insertCourseOrders(CourseOrders courseOrders);

    public int updateCourseOrders(CourseOrders courseOrders);

    public CourseOrders getCourseOrderById(CourseOrders courseOrders);
}
